Add supprot for FLS functions on Windows#4788
Add supprot for FLS functions on Windows#4788ohadravid wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the PR! |
2b118f5 to
536f2bb
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
☔ The latest upstream changes (possibly d04a627) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Let's just do the review in rust-lang/rust#148799, that should be simpler. |
This PR adds support for the
Fls{Alloc,GetValue,SetValue,Free}functions that are available on Windows. They enable native thread-local storage with destructor callbacks (MSDN).I also have a PR to std that switches the default impl to use these functions, but I think supporting them in Miri can be useful anyway 🪟